import os
from flask_cors import CORS

# 设置环境变量
os.environ['FLASK_DEBUG'] = '1'
os.environ['FLASK_ENV'] = 'development'

# 导入应用实例
from app.web.app import app

# 添加CORS支持
CORS(app)

# 确保调试模式开启
app.config['DEBUG'] = True
app.config['ENV'] = 'development'

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
